﻿namespace 手机项目
{
    class program
    {
        static void Main(string[] args)
        {
            Phone[] phones = new Phone[4];
            phones[0] = new Phone("王陆","iphone12 Promax 256G 石墨灰 20瓦快充","18035972480");
            phones[1] = new Phone("朱煜航","iQOO8 Pro 比上一个好","13935972480");
            phones[2] = new Phone("朱佳瑞","BlackSharkSPro 天宫白","13035972480");
            phones[3] = new Phone();

            // for(int i=0;i<phones.Length;i++){
            //     phones[i] = new Phone();
            // }

            

            // phones[0].拥有者 = "王陆";
            // phones[0].型号 = "iphone12 Promax 256G 石墨灰 20瓦快充";
            // phones[0].号码 = "18035972480";

            
            // phones[1].拥有者 = "朱煜航";
            // phones[1].型号 = "iQOO8 Pro 比上一个好";
            // phones[1].号码 = "13935972480";

            // phones[2].拥有者 = "朱佳瑞";
            // phones[2].型号 = "BlackSharkSPro 天宫白";
            // phones[2].号码 = "13035972480";

            for(int i=0;i<phones.Length;i++){
                Console.WriteLine(phones[i].获取());
            }

            
            Console.WriteLine(手机信息中心.获取手机运营商(phones[1].号码));
        }
    }
}

